//
//  MakeLightCommand.swift
//  命令设计模式
//
//  Created by slience on 2019/11/18.
//  Copyright © 2019 shehuiren. All rights reserved.
//

import UIKit

class MakeLightCommand: NSObject,CommandProtocol2 {
   
    
    var zhReceive : ZHReceiver?
    
    var paramter : CGFloat?
    
    func excute() {
        
        zhReceive?.makeLighter(par: paramter!)
    }
    
    func rollBack(){
        
        zhReceive?.makeDarker(par: paramter!)
    }
    
    
    init(rec: ZHReceiver, paramter: CGFloat) {
        
         zhReceive = rec
        self.paramter = paramter
         
    }
}
